@extends('admin.layout')
@section('title','积分规则')
@section('body')
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>积分兑换比例</legend>
    </fieldset>
    <form class="layui-form" action="{{url('config/interule_rule')}}" method="post" >

        <div class="layui-input-inline">
            <input type="text" name="jfdh" class="form-control" value="{{ $jfdh->value }}">
            {{csrf_field()}}
        </div>
        <div class="layui-input-inline">
            <input type="submit"  class="btn btn-success btn-sm" value="提交">
        </div>
        <span>积分兑换比例 多少积分兑换1元 单位分</span>
    </form>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>积分生成比例</legend>
    </fieldset>
    <form class="layui-form" action="{{url('config/interule_rule')}}" method="post" >
        <div class="layui-input-inline">
            <input type="text" name="jfsc" class="form-control" value="{{$jfsc->value}}">
            {{csrf_field()}}
        </div>
        <div class="layui-input-inline">
            <input type="submit"  class="btn btn-success btn-sm" value="提交">
        </div>
        <span>积分生成比例 支付多少元生成1积分 单位元</span>
    </form>

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>运费</legend>
    </fieldset>
    <form class="layui-form" action="{{url('config/interule_rule')}}" method="post" >
        <div class="layui-input-inline">
            <input type="text" name="freght" class="form-control" value="{{$freght->value}}">
            {{csrf_field()}}
        </div>
        <div class="layui-input-inline">
            <input type="submit"  class="btn btn-success btn-sm" value="提交">
        </div>
        <span>运费价格  单位元</span>
    </form>

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>分享的积分</legend>
    </fieldset>
    <form class="layui-form" action="{{url('config/interule_rule')}}" method="post" >
        <div class="layui-input-inline">
            <input type="text" name="share" class="form-control" value="{{$share->value}}">
            {{csrf_field()}}
        </div>
        <div class="layui-input-inline">
            <input type="submit"  class="btn btn-success btn-sm" value="提交">
        </div>
        <span>分享的积分 单位点</span>
    </form>
@endsection
@section('js')
<script>
    @if(Session::has('message'))
        layer.msg("{{Session::get("message")}}");
    {{Session::forget('message')}}
    @endif
</script>
@endsection